package extractor;

import utils.Folder;
import utils.files.Json;

import java.io.IOException;
import java.util.LinkedHashMap;

/**
 * Created by nuno-rafael-figueiredo on 03-05-2014.
 */
public class Config {
    private static final Json JSON = new Json(new Folder("."), "config");

    public static final Map MAP;

    static {
        try {
            MAP = JSON.load(Map.class);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    public static class Entity {
        public String annotation;
        public LinkedHashMap<String, String> fields = new LinkedHashMap<>();
        public LinkedHashMap<String, String> methods = new LinkedHashMap<>();
    }

    public static class Map extends LinkedHashMap<String, Entity>{
    }
}
